//
//  OYStatusModel.swift
//  weiboCopycat
//
//  Created by Orange Yu on 2016/12/4.
//  Copyright © 2016年 Orange Yu. All rights reserved.
//

import UIKit
import YYModel

class OYStatusModel: NSObject {

    /// 微博创建时间
    var created_at:Date?
    
    /// 微博内容
    var text:String?
    
    /// 微博来源
    var source:String?
    
    /// 微博id
    var id:Int64 = 0
    
    /// 微博作者信息
    var user:OYStatusAuthorModel?
    
    /// 转发数量
    var reposts_count:Int = 0
    
    /// 评论数
    var comments_count:Int = 0
    
    /// 点赞数
    var attitudes_count:Int = 0
    
    /// 转发微博
    var retweeted_status:OYStatusModel?
    
    /// 微博配图
    var pic_urls:[OYStatusPictureModel]?
    
    override var description: String {
        return yy_modelDescription()
    }
    
    /// 使用YYModel对容器属性进行解析
    class func modelContainerPropertyGenericClass() -> [String:Any] {
        return [
            "pic_urls":OYStatusPictureModel.self
        ]
    }
    
    /*
     + (NSDictionary *)modelContainerPropertyGenericClass {
     // value should be Class or Class name.
     return @{@"shadows" : [Shadow class],
     @"borders" : Border.class,
     @"attachments" : @"Attachment" };
     }
     */
    
}
